home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Drag / c / DragInit next >
Text File  |  1994-04-01  |  1KB  |  35 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    Drag.DragInit.c
  12.     Author:  Copyright © 1994 Jason Williams
  13.     Version: 1.00 (06 Feb 1994)
  14.     Purpose: Initialise the drag system for use with the Event sublibrary
  15.              If you are not using Event_ then you'll need to set up these
  16.              two handlers in an appropriate manner for yourself.
  17. */
  18.  
  19. #include "DeskLib:Core.h"
  20. #include "DeskLib:Wimp.h"
  21.  
  22. #include "DeskLib:Drag.h"
  23. #include "DeskLib:Event.h"
  24. #include "DeskLib:Handler.h"
  25.  
  26.  
  27. extern void Drag_Initialise(BOOL attachNULLhandler)
  28. {
  29.   if (attachNULLhandler)
  30.     Event_Claim(event_NULL, event_ANY, event_ANY, Handler_DragNULL, NULL);
  31.  
  32.   Event_Claim(event_USERDRAG, event_ANY, event_ANY, Handler_DragFinish, NULL);
  33. }
  34.  
  35.